import { createRouter, createWebHistory } from "vue-router";
export default createRouter({
    history: createWebHistory(),
    routes: [
        { path: "/home", component: () => import('@/view/home.vue') },
        { path: "/hospital", component: () => import('@/view/Hospital.vue') },
        { path: "/", redirect: '/home' },
        {
            path: "/detail", component: () => import('@/view/detail/index.vue'),

            children: [{ path: "booking", component: () => import('@/view/detail/booking.vue') },

            { path: "caling", component: () => import('@/view/detail/caling.vue') },
            { path: "hosDetail", component: () => import('@/view/detail/hosDetail.vue') },

            { path: "knowing", component: () => import('@/view/detail/knowing.vue') },
            { path: "stoping", component: () => import('@/view/detail/stoping.vue') }

            ],
        }
    ]
})